package cn.laixueit.api;

import cn.laixueit.pojo.Brand;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Controller
public interface BrandApi {
    @GetMapping("/brand/cid/{cid}")
    public ResponseEntity<List<Brand>> brandListByCid(@PathVariable("cid")Long cid);

    @GetMapping("/brand/getBrandById/{id}")
    public ResponseEntity<Brand> getBrandById(@PathVariable("id")Long id);

    @GetMapping("/brand/findBrandList")
    List<Brand> findBrandList(@RequestParam List<Long> bids);
}
